package com.design.create.singleton;

/**
 * 静态内部类实现懒汉式单例
 */
public class LazyHolderSyncSingleton {

    private static class LazyHolder {
        private static final LazyHolderSyncSingleton instance = new LazyHolderSyncSingleton();
    }

    private LazyHolderSyncSingleton() {}

    public static final LazyHolderSyncSingleton getInstance() {
        return LazyHolder.instance;
    }
}
